using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace WindowsApplication1
{
	/// <summary>
	/// Summary description for Form2.
	/// </summary>
	public class mainform : System.Windows.Forms.Form
	{
		private System.Windows.Forms.MainMenu mainMenu1;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.Windows.Forms.MenuItem menuItem2;
		public System.Windows.Forms.MenuItem menuItem5;
		public System.Windows.Forms.MenuItem menuItem6;
		public System.Windows.Forms.MenuItem menuItem7;
		public System.Windows.Forms.MenuItem menuItem3;
		private System.Windows.Forms.MenuItem menuItem8;
		private System.Windows.Forms.MenuItem menuItem9;
		public System.Windows.Forms.MenuItem menuItem13;
		public System.Windows.Forms.MenuItem menuItem14;
		private System.Windows.Forms.MenuItem menuItem10;
		private System.Windows.Forms.MenuItem menuItem12;
		private System.Windows.Forms.MenuItem menuItem15;
		private System.Windows.Forms.MenuItem menuItem17;
		private System.Windows.Forms.MenuItem menuItem11;
		private System.Windows.Forms.MenuItem menuItem16;
        private System.Windows.Forms.MenuItem menuItem19;
        private IContainer components;

		public mainform()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            this.mainMenu1 = new System.Windows.Forms.MainMenu(this.components);
            this.menuItem1 = new System.Windows.Forms.MenuItem();
            this.menuItem2 = new System.Windows.Forms.MenuItem();
            this.menuItem5 = new System.Windows.Forms.MenuItem();
            this.menuItem6 = new System.Windows.Forms.MenuItem();
            this.menuItem7 = new System.Windows.Forms.MenuItem();
            this.menuItem3 = new System.Windows.Forms.MenuItem();
            this.menuItem13 = new System.Windows.Forms.MenuItem();
            this.menuItem14 = new System.Windows.Forms.MenuItem();
            this.menuItem8 = new System.Windows.Forms.MenuItem();
            this.menuItem9 = new System.Windows.Forms.MenuItem();
            this.menuItem10 = new System.Windows.Forms.MenuItem();
            this.menuItem15 = new System.Windows.Forms.MenuItem();
            this.menuItem17 = new System.Windows.Forms.MenuItem();
            this.menuItem11 = new System.Windows.Forms.MenuItem();
            this.menuItem12 = new System.Windows.Forms.MenuItem();
            this.menuItem16 = new System.Windows.Forms.MenuItem();
            this.menuItem19 = new System.Windows.Forms.MenuItem();
            this.SuspendLayout();
            // 
            // mainMenu1
            // 
            this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem1,
            this.menuItem5,
            this.menuItem8,
            this.menuItem10,
            this.menuItem12,
            this.menuItem19});
            // 
            // menuItem1
            // 
            this.menuItem1.Index = 0;
            this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem2});
            this.menuItem1.Text = "open";
            // 
            // menuItem2
            // 
            this.menuItem2.Index = 0;
            this.menuItem2.Text = "Registration Form";
            this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click);
            // 
            // menuItem5
            // 
            this.menuItem5.Index = 1;
            this.menuItem5.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem6,
            this.menuItem7,
            this.menuItem3,
            this.menuItem13,
            this.menuItem14});
            this.menuItem5.Text = "course details";
            // 
            // menuItem6
            // 
            this.menuItem6.Index = 0;
            this.menuItem6.Text = "MCAT";
            this.menuItem6.Click += new System.EventHandler(this.menuItem6_Click);
            // 
            // menuItem7
            // 
            this.menuItem7.Index = 1;
            this.menuItem7.Text = "GMAT";
            this.menuItem7.Click += new System.EventHandler(this.menuItem7_Click);
            // 
            // menuItem3
            // 
            this.menuItem3.Index = 2;
            this.menuItem3.Text = "GRE";
            this.menuItem3.Click += new System.EventHandler(this.menuItem3_Click_1);
            // 
            // menuItem13
            // 
            this.menuItem13.Index = 3;
            this.menuItem13.Text = "LSAT";
            this.menuItem13.Click += new System.EventHandler(this.menuItem13_Click);
            // 
            // menuItem14
            // 
            this.menuItem14.Index = 4;
            this.menuItem14.Text = "DAT";
            this.menuItem14.Click += new System.EventHandler(this.menuItem14_Click);
            // 
            // menuItem8
            // 
            this.menuItem8.Index = 2;
            this.menuItem8.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem9});
            this.menuItem8.Text = " Course Material Issue";
            // 
            // menuItem9
            // 
            this.menuItem9.Index = 0;
            this.menuItem9.Text = "Issue Details";
            this.menuItem9.Click += new System.EventHandler(this.menuItem9_Click);
            // 
            // menuItem10
            // 
            this.menuItem10.Index = 3;
            this.menuItem10.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem15,
            this.menuItem17,
            this.menuItem11});
            this.menuItem10.Text = "Search";
            this.menuItem10.Click += new System.EventHandler(this.menuItem10_Click_1);
            // 
            // menuItem15
            // 
            this.menuItem15.Index = 0;
            this.menuItem15.Text = "Student Details";
            this.menuItem15.Click += new System.EventHandler(this.menuItem15_Click);
            // 
            // menuItem17
            // 
            this.menuItem17.Index = 1;
            this.menuItem17.Text = "students joined in a time period";
            this.menuItem17.Click += new System.EventHandler(this.menuItem17_Click);
            // 
            // menuItem11
            // 
            this.menuItem11.Index = 2;
            this.menuItem11.Text = "Payment information";
            this.menuItem11.Click += new System.EventHandler(this.menuItem11_Click_1);
            // 
            // menuItem12
            // 
            this.menuItem12.Index = 4;
            this.menuItem12.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
            this.menuItem16});
            this.menuItem12.Text = "Reports";
            // 
            // menuItem16
            // 
            this.menuItem16.Index = 0;
            this.menuItem16.Text = "Generate reports";
            // 
            // menuItem19
            // 
            this.menuItem19.Index = 5;
            this.menuItem19.Text = "&Exit";
            this.menuItem19.Click += new System.EventHandler(this.menuItem19_Click);
            // 
            // mainform
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(734, 540);
            this.IsMdiContainer = true;
            this.Menu = this.mainMenu1;
            this.Name = "mainform";
            this.Text = "PRIM";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.Closed += new System.EventHandler(this.mainform_Closed);
            this.Load += new System.EventHandler(this.mainform_Load);
            this.ResumeLayout(false);

		}
		#endregion

        private void menuItem2_Click(object sender, System.EventArgs e)
        {
            REGISTRATIONFORM ob = new REGISTRATIONFORM();
            ob.MdiParent = this;
            ob.Show();
        }
		Course_Detail ob;
		
		
		
		private void menuItem3_Click_1(object sender, System.EventArgs e)
		{
			if(ob!=null)
			{
				ob.Close();
			}
			ob=new Course_Detail("GRE");
			ob.MdiParent=this;			
			ob.Show();
		}

		private void menuItem7_Click(object sender, System.EventArgs e)
		{
			if(ob!=null)
			{
				ob.Close();
			}
			ob=new Course_Detail("GMAT");
			ob.MdiParent=this;		
			ob.Show();
		}

        

		
		private void menuItem14_Click(object sender, System.EventArgs e)
		{
			if(ob!=null)
			{
				ob.Close();
			}
			 ob=new Course_Detail("DAT");
			ob.MdiParent=this;			
			ob.Show();
		}

		private void menuItem13_Click(object sender, System.EventArgs e)
		{
			if(ob!=null)
			{
				ob.Close();
			}
			ob=new Course_Detail("LSAT");
			ob.MdiParent=this;
			ob.Show();
		}

		

		

		

		private void mainform_Closed(object sender, System.EventArgs e)
		{
			Application.Exit();
		}

		

		private void mainform_Load(object sender, System.EventArgs e)
		{
		
		}

		private void menuItem11_Click(object sender, System.EventArgs e)
		{
			
		}
		

	

		private void menuItem10_Click_1(object sender, System.EventArgs e)
		{
		
		}

        private void menuItem15_Click(object sender, System.EventArgs e)
        {
            stu_id obj1 = new stu_id(0);
            obj1.MdiParent = this;
            obj1.Show();
        }



        private void menuItem17_Click(object sender, System.EventArgs e)
        {
            stu_id obj1 = new stu_id(1);
            obj1.MdiParent = this;
            obj1.Show();
        }


			
        

		private void menuItem18_Click(object sender, System.EventArgs e)
		{
			
		}

        private void menuItem16_Click(object sender, System.EventArgs e)
        {
            //crystalreport obj11 = new crystalreport();
            //obj11.MdiParent = this;
            //obj11.Show();
        }

		private void menuItem19_Click(object sender, System.EventArgs e)
		{
			Application.Exit();	
		}

        private void menuItem11_Click_1(object sender, System.EventArgs e)
        {
            Due_Date obj111 = new Due_Date();
            obj111.MdiParent = this;
            obj111.Show();
        }

        private void menuItem6_Click(object sender, EventArgs e)
        {
            if (ob != null)
            {
                ob.Close();
            }
            ob = new Course_Detail("MCAT");
            ob.MdiParent = this;
            ob.Show();

        }

        private void menuItem9_Click(object sender, EventArgs e)
        {
            MaterialIssue ob = new MaterialIssue();
            ob.MdiParent = this;
            ob.Show();	
        }

		

		

		
		
		
		
	}
}
